package com.grapefruitchat.client;

import com.grapefruitchat.client.ui.ApplicationWindow;

/**
 * TODO comments
 * 
 * @author Michael Gierasimiuk, Innovation Science Pty Ltd.
 */
public class GrapefruitChat
{
  private ApplicationWindow window = new ApplicationWindow();
   
  /**
   * Creates a new {@link GrapefruitChat}.
   */
  public GrapefruitChat()
  {
    window.setSize( 700, 500 );
    window.centerWindow();
    window.setVisible( true );
  }
  
  /**
   * Returns true if the {@link GrapefruitChat} application is being executed on
   * a machine running OS X.
   * 
   * @return true if the application is being executed on OS X.
   */
  public boolean isOsx()
  {
    String osName = System.getProperty( "os.name" );
    if ( osName.toLowerCase().contains( "mac" ) )
    {
      return true;
    }
    return false;
  }
}
